package com.wpml;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Description
 * @Date 2021-08-19
 * @Author wangpei
 **/
@WebServlet(urlPatterns = "/userServlet")
public class UserServlet extends HttpServlet {


    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("user servlet");
        resp.setContentType("text/html;charset=utf-8");
        resp.getWriter().println("hello user servlet");
    }
}
